<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
  String path = request.getContextPath();
  String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
  String _id=request.getParameter("_");
  String jsessionid = session.getId();
%>

<ul  style="list-style:none;margin-top:10px">
    <c:if test="${fn:length(taskFlowList)>0}">
       <c:forEach items="${taskFlowList}" varStatus="i" var="list" >
            <li id="${list.id}" style="margin-left:-15px;margin-bottom:10px;font-size:14px;border-bottom: 1px dashed #ccc">
                    <span>
                        <span style="color:#03a9f4">
                            <i class="fa fa-user txt-color-green"></i>
                            ${list.user.name}
                            (${list.duty.power.department.name}-${list.duty.power.post.name})
                        </span>
                         <time>
                            <fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${list.createTime}" />
                         </time>
                         ${list.type.value()}
                    </span>
                    <c:if test="${!i.first && not empty(list.comment)}">
                        <div class="subject">
                            <i class="fa fa-comments"></i>审批意见: ${list.comment}
                        </div>
                    </c:if>
            </li>
       </c:forEach>
    </c:if>
    <c:if test="${fn:length(taskFlowList)==0}">
        <h4> <i class="fa fa-warning"></i> 没有任何审批信息！</h4>
    </c:if>
</ul>


<script>
    $('div.subject').find("p:first").css('display','inline-block');
</script>

